Skip to content

docs(web-checkout): document Stripe discount codes - #254

Draft
claude[bot] wants to merge 1 commit into
mainfrom
claude/document-web-checkout-discount-codes
Draft

docs(web-checkout): document Stripe discount codes#254
claude[bot] wants to merge 1 commit into
mainfrom
claude/document-web-checkout-discount-codes

Conversation

@claude

@claude claude Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Requested by Christo Todorov · Slack thread

Documents the customer-entered discount / promotion code feature for Stripe web checkout.

What changed

  • Adds a new page content/docs/web-checkout/web-checkout-discount-codes.mdx and registers it in content/docs/web-checkout/meta.json (Getting Started, after Stripe one-time purchases). It covers: what discount codes do for web checkout, the Stripe coupon + promotion-code prerequisite, setup in the paywall editor (a text Input bound to a state variable + a button running the Redeem Discount tap action, pointed at {{ state.discountCode }} or a fixed literal), showing the discounted price with the discount display variables, and a note that the code applies across web checkout flows with deferred Apple Pay as the exception.
  • Lists the new Redeem Discount action in the paywall editor's Purchases tap-action reference (content/docs/dashboard/dashboard-creating-paywalls/paywall-editor-styling-elements.mdx), cross-linking to the new page.

Before / After

  • Before: no docs on web-checkout discount codes.
  • After: a page explaining how to set up and use Stripe promotion codes on a web checkout paywall.

Coordination
Exposing the Redeem Discount action in the editor for Stripe paywalls depends on a companion code PR in superwall/paywall-next (the editor gate) that is not yet merged. This docs PR should land alongside that editor change so the documented action is actually available to customers. Kept as a draft until then.


Generated by Claude Code

Add a Discount Codes page covering the web checkout promotion-code flow:
Stripe coupon/promotion-code prerequisite, adding a text input bound to a
state variable, redeeming with the Redeem Discount tap action, showing the
discounted price, and where the code applies across web checkout flows.

Also list Redeem Discount in the paywall editor Purchases tap-action
reference and register the new page in the Web Checkout nav.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
superwall-docs 3e866e7 Commit Preview URL

Branch Preview URL
Aug 05 2026, 08:57 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant